﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AbetEvaluation.Master" AutoEventWireup="true"
    CodeBehind="OutcomeList.aspx.cs" Inherits="AbetEvaluation.EvaluationList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>ABET Evaluation - Outcome List</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="gvOutcomes" runat="server" AllowSorting="True" AutoGenerateColumns="False"
        CellPadding="4" DataSourceID="dsOutcomes" ForeColor="#333333" GridLines="None"
        BorderStyle="Outset" BorderWidth="3px" DataKeyNames="ID" EmptyDataText="No outcomes"
        HorizontalAlign="Center" Width="100%" 
    OnRowCommand="gvOutcomes_RowCommand">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" ReadOnly="True"
                Visible="False" />
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title">
                <HeaderStyle Width="180px" HorizontalAlign="Left" />
                <ItemStyle Width="180px" Font-Bold="True" />
            </asp:BoundField>
            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle Font-Size="Small" ForeColor="Gray" />
            </asp:BoundField>
            <asp:BoundField DataField="CreatedBy" HeaderText="Created By" SortExpression="CreatedBy"
                ReadOnly="True">
                <HeaderStyle Width="70px" Font-Size="Small" HorizontalAlign="Center" />
                <ItemStyle Width="70px" Font-Size="Small" HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="CreatedOn" HeaderText="Created On" SortExpression="CreatedOn"
                ReadOnly="True">
                <HeaderStyle Width="100px" Font-Size="Small" HorizontalAlign="Center" />
                <ItemStyle Width="100px" Font-Size="XX-Small" HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="TakenCount" HeaderText="Taken Count" SortExpression="TakenCount"
                ReadOnly="True">
                <HeaderStyle Width="30px" Font-Size="Small" HorizontalAlign="Left" />
                <ItemStyle Width="30px" Font-Size="Small" HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:ButtonField ButtonType="Image" CommandName="Take" ImageUrl="~/Images/32x32/page_white_go.png"
                Text="Take">
                <HeaderStyle Width="32px" />
                <ItemStyle Width="32px" />
            </asp:ButtonField>
            <asp:ButtonField ButtonType="Image" CommandName="Edit" ImageUrl="~/Images/32x32/pencil.png"
                Text="Edit" Visible="False">
                <HeaderStyle Width="32px" />
                <ItemStyle Width="32px" />
            </asp:ButtonField>
            <asp:ButtonField ButtonType="Image" CommandName="Delete" ImageUrl="~/Images/32x32/delete.png"
                Text="Delete" Visible="False">
                <HeaderStyle Width="32px" />
                <ItemStyle Width="32px" />
            </asp:ButtonField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:ObjectDataSource ID="dsOutcomes" runat="server" SelectMethod="GetOutcomes"
        TypeName="AbetEvaluation.Business.Outcomes" 
    DataObjectTypeName="AbetEvaluation.Business.Outcome" 
    DeleteMethod="DeleteOutcome" OldValuesParameterFormatString="original_{0}" 
    UpdateMethod="UpdateOutcome"></asp:ObjectDataSource>
    <asp:Label ID="lblDebug" runat="server" Text=""></asp:Label>
</asp:Content>
